// allDisease.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        indexa: 0,
        indexb: 0,
        type: [
            {
                icon: "../../images/ek.png",
                icon_active: "../../images/ek_active.png",
                name: "儿科"
            }, {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科1"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科2"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科3"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科4"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科5"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科6"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科7"
            }, {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科8"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科85"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科66"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科777"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科rr"
            }
            , {
                icon: "../../images/yk.png",
                icon_active: "../../images/yk_active.png",
                name: "眼科ee"
            }
        ],
        dise:[
            "小儿血尿","小儿肾病","点对点"
        ]
    },

    tabTap: function (e) {
        var _this = this;
        _this.setData({
            indexa: e.target.dataset.index,
        })
    },
    disTap:function(e){
        var _this = this;
        _this.setData({
            indexb: e.target.dataset.index,
        })
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {


    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {

    }
})